package com.ccsoft.atools.service;


import com.ccsoft.atools.model.*;

import java.util.List;
import java.util.Map;

public interface SysUserService {
    int deleteByPrimaryKey(Integer iid);

    SysUser insert(SysUser record);

    SysUser insertSelective(SysUser record);

    SysUser selectByPrimaryKey(Integer iid);

    SysUser updateByPrimaryKeySelective(SysUser record);

    SysUser updateByPrimaryKey(SysUser record);

    List<SysUser> selectAll();

    SysUser selectByUserId(String sid);

    boolean isExist(String userid);

    List<SysRolep> selectUserObjPermissions(String userid);

    List<SysPermission> selectPermissionsByUserId(String userid);

    List<SysRole> selectRoles(int iid);

    FusedUserRole selectFusedUser(int iid);

    List<TableStyle> selectTableStyleByUserId(String userid, String tableName);
    List<Map<String,Object>> getRoles(Integer userIid, String userSid);

}